﻿<!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>repeat js</title>
    <script src="jquery-1.8.2.js"></script>
    <script src="angular.js"></script>
    <script src="repeat.js"></script>
</head>
<body>
    
    <div ng-app="repeatApp">
        <div ng-controller="repeatsController">
            <h2>
                {{hello}}
            </h2>
			<div ng-repeat="item in array">
				<h2>{{item.pageindex}}</h2>
				<button ng-click="item.pageClick(item.pageindex)">{{item.pageindex}}</button>
			</div>

        </div>
    </div>
    
</body>
</html>